cmake_minimum_required (VERSION 2.8)

set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -std=gnu++11")

include_directories(${PROJECT_SOURCE_DIR}/src /usr/local/include/lqrsolver)
link_directories(${PROJECT_BINARY_DIR}/lib)

find_package(Armadillo REQUIRED)

find_library(MATHGL2_LIBRARY NAMES mgl)
find_library(ITPP_LIBRARY NAMES itpp)

add_executable(demo demo.cpp)
target_link_libraries(demo lqr ${MATHGL2_LIBRARY} ${ITPP_LIBRARY} ${ARMADILLO_LIBRARIES})
